home *** CD-ROM | disk | FTP | other *** search
- From: Roman Lechtchinsky <wolfro@cs.tu-berlin.de>
- Message-ID: <31763F3F.805@cs.tu-berlin.de>
- X-Original-Date: Thu, 18 Apr 1996 15:10:23 +0200
- Path: in1.uu.net!bounce-back
- Date: 19 Apr 96 00:25:29 GMT
- Approved: fjh@cs.mu.oz.au
- Newsgroups: comp.std.c++
- Subject: Member templates
- Organization: Technical University of Berlin
- X-Mailer: Mozilla 2.0 (Win95; I)
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMXbdguEDnX0m9pzZAQFM8AF9H/CUu65ArVu6FInGPnLBIWihU8OqiXrX
- WVdq1FTtwdMiD7WHMFg64Bny8BERngEw
- =JqXC
-
- Hi,
-
- the question is about member templates and virtual functions. I know these
- are prohibited. However, what about the following example:
-
- class Base
- {
- virtual void f(int);
- };
-
- class Derived : Base
- {
- template<class T> void f(T);
- };
-
- Is this legal? If so, will the template function f(int) override
- Base::f(int)? If so, when will it be instantiated? And, last but not least,
- which section of the DWP handles this case? Thanks in advance.
-
- Bye
-
- Roman
- ---
- [ comp.std.c++ is moderated. To submit articles: try just posting with ]
- [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
- [ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
- [ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
- [ Comments? mailto:std-c++-request@ncar.ucar.edu ]
-